package com.qf.controller;

import com.qf.ex.CustomerException;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/*
 *@Description:
 *@author:刘哥
 *@Date:14:18 2022/7/14
 */
@RestController
public class HelloController {
    @RequestMapping("/sayHello")
    public String sayHello(){
        System.out.println("hello......");
//        int i=10/0;
        if(1==1){
            throw  new CustomerException("自定义异常");
        }
        return "success";
    }
}
